package factory;

public class StaticExample {
	static {
		System.out.println("This is first static block");
	}

	public StaticExample() {
		System.out.println("This is constructor");
	}

	public static String staticString = "Static Variable";

	static {
		System.out.println("This is second static block and " + staticString);
	}

	public static void main(String arg[]) {
		StaticExample example = new StaticExample();
		StaticExample.staticMethod();

	}

	static {
		staticMethod();
		System.out.println("This is third static block");
	}

	public static void staticMethod() {
		System.out.println("This is staticee method");
	}

	public static void staticMethod2() {
		System.out.println("This is static method2");
	}

}